<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ page import="com.opensymphony.xwork2.ActionSupport"%>
<%@ page import="net.aiform.account.pojo.*"%>
<%@ page import="net.aiform.bean.Constant"%>

<%
	ActionSupport as_userInfo = new ActionSupport();
	Person p = (Person) session.getAttribute(Constant.LOGINUSER);
	if (p instanceof Person) {
		out.print(as_userInfo.getText("welcome", new String[] { p.getIdentity().getName() }));
		out.print("[<a href='" + request.getContextPath() + "/logout'>" + as_userInfo.getText("logout") + "</a>]");
	} else {
		out.print(as_userInfo.getText("welcome", new String[] { as_userInfo.getText("guest") }));
		out.print("[<a href='" + request.getContextPath() + "/acc/login'>" + as_userInfo.getText("login") + "</a>]");
	}
%>